package com.shelpe.services.sinbad.repository.jpa;

import java.util.Date;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sinbad.entity.jpa.MessageTopics;

public interface MessageTopicsRepository extends PagingAndSortingRepository<MessageTopics, Long> {

	MessageTopics findByMessageID(long messageID);

	Page<MessageTopics> findByCreateTimeBeforeOrderByCreateTimeDesc(Date date, Pageable page);
}
